-- GENERATED SPELL FOR [High Shaman Bloodpaw] --


function spell0_27762(pUnit, Event) --@Bloodlust,n/a--
pUnit:FullCastSpellOnTarget(28902,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27762', 10299, 1)
end

function spell1_27762(pUnit, Event) --@Chain Lightning,n/a--
pUnit:FullCastSpellOnTarget(22355,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27762', 651, 1)
end

function spell2_27762(pUnit, Event) --@Frost Shock,n/a--
pUnit:FullCastSpellOnTarget(19133,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27762', 8282, 1)
end

function spell3_27762(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(22414,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27762', 2000, 1)
end

function Sorts_27762(pUnit, Event)
local choix_sorts_27762 = math.random(0, 3)
if choix_sorts_27762 == 0 then
pUnit:RegisterEvent('spell0_27762', 1, 1)
end
if choix_sorts_27762 == 1 then
pUnit:RegisterEvent('spell1_27762', 1, 1)
end
if choix_sorts_27762 == 2 then
pUnit:RegisterEvent('spell2_27762', 1, 1)
end
if choix_sorts_27762 == 3 then
pUnit:RegisterEvent('spell3_27762', 1, 1)
end
end

function mob27762_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27762', math.random(1500, 3000), 1)
end

function mob27762_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27762_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27762_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27762, 1, 'mob27762_Action')
RegisterUnitEvent(27762, 2, 'mob27762_Leave')
RegisterUnitEvent(27762, 3, 'mob27762_Kill')
RegisterUnitEvent(27762, 4, 'mob27762_Die')
